function init_global2

% initialize values for global variables

global NUMBER_OF_EVENTS LENGTH BIG TNOW MAINT_COST REPAIR_COST SALES_REVENUE EXP_RATE 
global SHAPE1 SCALE1 SHAPE2 SCALE2 A3 B3 B U L MU STATES_MAX NET_ITERMAX THRESHOLD ISTAR
% types of events 1=termination; 2=produce;3=repair; 4=maintenance 

global ENCODER_UL_PC % upper limit for encoder for likely value of production count in neuron
ISTAR=4;
ENCODER_UL_PC=20;

NET_ITERMAX=2;
NUMBER_OF_EVENTS = 4; 

LENGTH=4000000;

BIG=10000001; % has to be bigger than LENGTH 

STATES_MAX=300;

TNOW=0;

% gamma distribution for time between failures: defined by (shape,scale)
% where mean =shape*scale (in days); variance =shape*(scale*scale) (in
% days-squared)

B=3; % upper limit for size of buffer




% Following are parameters of the uniform distribution for maintenance time

U=20;

L=5;

% Following parameters from gamma distribution for time between failures

SHAPE1 = 16; 

SCALE1 = 12.5;

% Following parameters from gamma distribution for production time

SHAPE2=8;

SCALE2=1.25;

% Following parameters from unif distribution for repair time

A3=150;

B3=250;





MAINT_COST=2; % cost of one maintenance in dollars

REPAIR_COST=5; % cost of one repair in dollars

SALES_REVENUE=1;

EXP_RATE=0.5;


